<!-- INCLUDE overall_header.html -->

<!-- IF S_AUTH_MANAGE -->
<div class="topic-actions" style="float: {S_CONTENT_FLOW_END};">
	<div class="buttons">
		<div class="reply-icon"><a href="{U_NEW}"><span>{L_NEW_CVSDB}</span></a></div>
	</div>
</div>
<!-- ENDIF -->

<h2>{L_CVSDB}</h2>

<div class="panel bg1">
	<div class="inner"><span class="corners-top"><span></span></span>
	
	{L_CVSDB_EXPLAIN}
	
	<span class="corners-bottom"><span></span></span></div>
</div>

<form method="post" action="{S_FORM_ACTION}">

<!-- IF S_MODE eq 'add' or S_MODE eq 'edit' -->
	<div class="panel">
		<div class="inner"><span class="corners-top"><span></span></span>
		
		<h2>{TITLE}</h2>
		
		<p>{TITLE_EXPLAIN}</p>
		
		<fieldset class="fields2">
		<!-- IF S_ERROR -->
		<p class="error">{S_ERROR}</p>
		<!-- ENDIF -->
		<dl>
			<dt><label for="cvsdb_cvs_date">{L_CVS_DATE}:</label></dt>
			<dd><input type="text" size="45" maxlength="64" class="inputbox" name="cvsdb_cvs_date" id="cvsdb_cvs_date" value="{CVS_DATE}" tabindex="1" /></dd>
		</dl>
		<dl>
			<dt><label for="cvsdb_sql">{L_SQL_DATA}:</label></dt>
			<dd><textarea name="cvsdb_sql" id="cvsdb_sql" class="inputbox" rows="15" cols="76" tabindex="2">{SQL}</textarea></dd>
		</dl>
		</fieldset>
		
		<span class="corners-bottom"><span></span></span></div>
	</div>
	
	<div class="panel bg2">
		<div class="inner"><span class="corners-top"><span></span></span>
		
		<fieldset class="submit-buttons">
			{S_HIDDEN_FIELDS}<input type="reset" value="{L_RESET}" class="button2" />&nbsp; 
			<input type="submit" name="submit" value="{L_SUBMIT}" class="button1" />
		</fieldset>
		
		<span class="corners-bottom"><span></span></span></div>
	</div>
<!-- ELSEIF  S_MODE eq 'plain' or S_MODE eq '' -->
	<div class="panel bg2">
		<div class="inner"><span class="corners-top"><span></span></span>
		
		<h3>{L_SELECT_DATE}</h3>
		
		<p>{L_SELECT_DATE_EXPLAIN}</p>
		
		<fieldset class="fields1">
		<!-- IF S_ERROR -->
		<p class="error">{S_ERROR}</p>
		<!-- ENDIF -->
		<dl>
			<dt><label for="start_day">{L_START_DATE}:</label></dt>
			<dd>
				<label for="start_day">{L_DAY}: <select name="start_day" id="start_day" style="width: 40px;">{S_START_DAY_SELECT}</select></label> 
				<label for="start_month">{L_MONTH}: <select name="start_month" id="start_month" style="width: 40px;">{S_START_MONTH_SELECT}</select></label> 
				<label for="start_year">{L_YEAR}: <select name="start_year" id="start_year" style="width: 60px;">{S_START_YEAR_SELECT}</select></label>
			</dd>
		</dl>
		<dl>
			<dt><label for="end_day">{L_END_DATE}:</label></dt>
			<dd>
				<label for="end_day">{L_DAY}: <select name="end_day" id="end_day" style="width: 40px;">{S_END_DAY_SELECT}</select></label> 
				<label for="end_month">{L_MONTH}: <select name="end_month" id="end_month" style="width: 40px;">{S_END_MONTH_SELECT}</select></label> 
				<label for="end_year">{L_YEAR}: <select name="end_year" id="end_year" style="width: 60px;">{S_END_YEAR_SELECT}</select></label>
			</dd>
		</dl>
		<dl>
			<dt><label for="display_plain_no">{L_DISPLAY_MODE}:</label></dt>
			<dd>
				<label for="display_plain_no"><input type="radio" name="display_plain" id="display_plain_no" value="0"<!-- IF not S_DISPLAY_PLAIN --> checked="checked"<!-- ENDIF --> /> {L_LIST}</label>
				<label for="display_plain_yes"><input type="radio" name="display_plain" id="display_plain_yes" value="1"<!-- IF S_DISPLAY_PLAIN --> checked="checked"<!-- ENDIF --> /> {L_PLAIN}</label>
			</dd>
		</dl>
		</fieldset>
		
		<fieldset class="submit-buttons">
			{S_HIDDEN_FIELDS}<input type="reset" value="{L_RESET}" class="button2" />&nbsp; 
			<input type="submit" name="submit" value="{L_SUBMIT}" class="button1" />
		</fieldset>
		
		<span class="corners-bottom"><span></span></span></div>
	</div>
	
	<!-- IF S_ROW_COUNT -->
	
	<h2>{L_RESULTS}</h2>
	
	<div class="<!-- IF S_DISPLAY_PLAIN -->panel bg2<!-- ELSE -->forumbg<!-- ENDIF -->">
		<div class="inner"><span class="corners-top"><span></span></span>
		
		<!-- IF S_DISPLAY_PLAIN -->
		<p>{SQL_STATS}</p>
		
		<fieldset class="fields2">
		<dl>
			<dt><label for="message">{L_SQL_DATA}:</label></dt>
			<dd><textarea class="inputbox" rows="15" cols="76" tabindex="4">{SQL_DATA}</textarea></dd>
		</dl>
		</fieldset>
		<!-- ELSE -->
		<table class="table1" cellspacing="1">
		<thead>
		<tr>
			<th style="width:13%;" class="name">{L_USERNAME}</th>
			<th style="width:13%;">{L_CVS_DATE}</th>
			<th>{L_SQL_DATA}</th>
			<th>{L_OPTIONS}</th>
		</tr>
		</thead>
		<tbody>
			<!-- BEGIN row -->
		<tr class="<!-- IF memberrow.S_ROW_COUNT is even -->bg1<!-- ELSE -->bg2<!-- ENDIF --> inner">
			<td>{row.POSTER_FULL}</td>
			<td>{row.CVS_DATE}</td>
			<td class="postbody" style="width:99%;"><div class="content"><dl class="codebox"><dt>Code: <a href="#" onclick="selectCode(this); return false;">{L_SELECT_ALL_CODE}</a></dt><dd><code>{row.SQL_DATA}
            </code></dd></dl></div></td>
			<td><!-- IF S_AUTH_MANAGE -->
				<a href="{row.U_EDIT}">{L_EDIT}</a><br />
				<a href="{row.U_DELETE}">{L_DELETE}</a>
				<!-- ELSE -->&nbsp;<!-- ENDIF -->
			</td>
		</tr>
			<!-- END row -->
		</tbody>
		</table>
		<!-- ENDIF -->
		
		<span class="corners-bottom"><span></span></span></div>
	</div>
	<!-- ENDIF -->

<!-- ENDIF -->

</form>

<p><a href="{U_CVSDB}" class="left-box left">{L_CVSDB_TRY_AGAIN}</a></p>

<p class="right"><a href="{U_CVSDB}">{L_CVSDB}</a> &copy; 2007 <a href="http://phpbbmodders.net">eviL3</a> and <a href="http://startrekguide.com">Highway of Life</a></p>
<div class="clear"></div>

<!-- INCLUDE overall_footer.html -->
